package game.level;

import java.util.Random;

import engine.game.Level;
import engine.game.Manager;
import engine.objects.GameObjects;
import game.objects.staticObjects.*;

public class LevelObjectManager extends Manager{

	private static final long serialVersionUID = 1L;
	
	@SuppressWarnings("unused")
	private static Random r = new Random(); 

	public LevelObjectManager(GameObjects go, Level lvl) {
		super(go, lvl);
		init();
	}

	@Override
	public void init() {
		
		super.init(); 

		Ground ground = new Ground(this, 0, 0, getLevel().WIDTH, 80);
		
		this.addNewObject(new Background_SunnySky(this)); 
		this.addNewObject(new Water(this, 0, ground.getObjectHeight(), this.getLevel().WIDTH, 128 ));
		this.addNewObject(new Background_BeachSkyline(this));
		this.addNewObject(ground); 
		this.addNewObject(new BottomOfTheWorld(this, 0, 0, getLevel().WIDTH, 10));

		this.addNewObject(new Ceiling(this));
		this.addNewObject(new LeftWall(this)); 
		this.addNewObject(new RightWall(this));
		
//		this.addNewObject(new Wall(this, Engine.WIDTH / 2, Engine.HEIGHT / 5, 5, Engine.HEIGHT / 4));
//		
		this.addNewObject(new Block(this, 125, 130, 150, 10)); 		
//		this.addNewObject(new Block(this, 175, 70, 50, 10));		
//		this.addNewObject(new Block(this, 225, 90, 50, 10));		
//		this.addNewObject(new Block(this, 275, 130, 50, 10));		
//		this.addNewObject(new Block(this, 325, 170, 50, 10));
		
		
//		for(int x=0; x<20; x++){
//			int rw = r.nextInt(70) + 120 ;
//			int rh = r.nextInt(100) + 200 ; 
//			int rl = r.nextInt(Engine.WIDTH) ; 
//			int rt = 50 ; 
//			this.addNewObject(new PalmTree(this, rl, rt, rw, rh)); 
//		}
		
	}

	
}
